package com.cloud.base.client.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.cloud.common.mybatis.base.entity.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 系统用户-登录日志
 *
 * @author wwkk
 * @date 2019-07-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("base_user_account_logs")
@ApiModel(value="BaseUserAccountLogs对象", description="系统用户-登录日志")
public class BaseUserAccountLogs extends AbstractEntity {

private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    private LocalDateTime loginTime;

    @ApiModelProperty(value = "登录Ip")
    private String loginIp;

    @ApiModelProperty(value = "登录设备")
    private String loginAgent;

    @ApiModelProperty(value = "登录次数")
    private Integer loginNums;

    private Long userId;

    private String account;

    private String accountType;

    @ApiModelProperty(value = "账号ID")
    private Long accountId;


}
